package com.ybkj.daijia.server.sales;

import com.ybkj.daijia.server.mc.Passenger;
import com.ybkj.daijia.server.model.Base;
import java.math.BigDecimal;

/**
 * 客户所持优惠劵
 *
 * @author Shine
 */
public class Coupon extends Base {

    public static final int COUPON_STATUS_NOTBIND = 0;
    public static final int COUPON_STATUS_NOTUSE = 1;
    public static final int COUPON_STATUS_HASUSED = 2;
    public static final int COUPON_STATUS_INVALID = 3;
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private Long passengerId;

    private Passenger passenger;

    private String phone;//客户手机

    private Long couponRuleId;//优惠券规则ID

    private CouponRule couponRule;

    private Integer status;//0未绑定 1未用(已绑定) 2已用  3失效

    private String code;//编码

    private Long runCode;

    private String codeKey;//密码

    private String createdStr;

    /**
     * 线路id
     */
    private Long lineId;

    /**
     * 线路名
     */
    private String lineName;

    /**
     * 线路优惠券金额
     */
    private BigDecimal couponPrice;

    /**
     * 线路优惠券折扣
     */
    private Double couponDiscount;

    public Double getCouponDiscount() {
        return couponDiscount;
    }

    public void setCouponDiscount(Double couponDiscount) {
        this.couponDiscount = couponDiscount;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public BigDecimal getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(BigDecimal couponPrice) {
        this.couponPrice = couponPrice;
    }

    public Long getLineId() {
        return lineId;
    }

    public void setLineId(Long lineId) {
        this.lineId = lineId;
    }

    public String getCreatedStr() {
        return createdStr;
    }

    public void setCreatedStr(String createdStr) {
        this.createdStr = createdStr;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCodeKey() {
        return codeKey;
    }

    public void setCodeKey(String codeKey) {
        this.codeKey = codeKey;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getPassengerId() {
        return passengerId;
    }

    public void setPassengerId(Long passengerId) {
        this.passengerId = passengerId;
    }

    public Long getCouponRuleId() {
        return couponRuleId;
    }

    public void setCouponRuleId(Long couponRuleId) {
        this.couponRuleId = couponRuleId;
    }

    public CouponRule getCouponRule() {
        return couponRule;
    }

    public void setCouponRule(CouponRule couponRule) {
        this.couponRule = couponRule;
    }

    public Long getRunCode() {
        return runCode;
    }

    public void setRunCode(Long runCode) {
        this.runCode = runCode;
    }


    public Passenger getPassenger() {
        return passenger;
    }

    public void setPassenger(Passenger passenger) {
        this.passenger = passenger;
    }

}
